from django.urls import re_path, path, include
from django.views.static import serve
from django.conf import settings
from rest_framework import routers
from . import views

router = routers.DefaultRouter()
router.register(r"test", views.HelloWorld, basename="00测试页面")
router.register(r"newUser", views.TankUsernameListViewSet, basename="10注册游戏账户")
urlpatterns = [
    path("", include(router.urls)),
    # path("media/", serve, {'document_root':settings.MEDIA_ROOT}, name='media')
    # path("index/", dviews.index.as_view()),
]
